Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ssh_autodetect.py to support h3c device auto detect. #3397

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Mr-Jayden
Copy link

When I used the autodetect method on H3C devices, the return was empty, so I added H3C related content to SSH_MAPPER_DICT

When I used the autodetect method on H3C devices, the return was empty, so I added H3C related content to SSH_MAPPER_DICT
@@ -166,6 +166,12 @@
"priority": 99,
"dispatch": "_autodetect_std",
},
"h3c": {
Copy link
Owner

@ktbyers ktbyers Mar 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no h3c device_type in Netmiko.

This probably should return hp_compware or we should just put in another key to the ssh_dispatcher.py mapping h3c_compware to the HPComwareSSH class.

We should probably do the latter.

Do you want to implement that fix? If not, I will update this PR and implement it (just let me know).

@Mr-Jayden

add h3c mapping to HPComwareSSH.
@Mr-Jayden
Copy link
Author

I have added h3c mapping according to your requirements. If I later discover that h3c no longer works through hp_comware, I will create and write the H3CComwareSSH class. I hope to get your consent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants